package com.panda.ziwei.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 真太阳时
 */
@Getter
@Setter
public class TrueSunCalendarDto {

    /** 真太阳时Date */
    private Date date;

    /** 真太阳时年份 */
    private int realYear;

    /** 真太阳时月份 */
    private int realMonth;

    /** 真太阳时日期 */
    private int realDay;

    /** 真太阳时小时 */
    private int realHour;

    /** 真太阳时分钟 */
    private int realMinute;

    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        result.append(realYear);
        result.append("年");
        result.append(realMonth + 1);
        result.append("月");
        result.append(realDay);
        result.append("日 ");
        result.append(realHour);
        result.append("时");
        result.append(realMinute);
        result.append("分");
        return result.toString();
    }

}
